<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no">
		<title>全局对象属性</title>
		<script type="text/javascript">
			window.person = {
				name:'tom',
				age:20
			}
			
			function fn(){
				//Object
				//age: 20
				//name: "tom"
				//全局对象的属性和方法，不要声明直接使用
				console.log(person)
			}
			fn()
		</script>
	</head>
	<body>
		<div id="app">
			<!-- todo -->
		</div>
	</body>
</html>